Displaying Statistical Data

Calculating statistical values can be difficult, because many counter values are the result of a change over time. The PDH provides functions that perform calculations (such as minimum, maximum, and average values) on the raw counter data for you.

After you have retrieved the raw data for a counter, call the PdhComputeCounterStatistics18.KLAP function to perform the necessary calculations on the raw data.